# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=fvwm
pkgver=2.7.0
pkgrel=2
pkgdesc="FVWM is a powerful desktop window manager for the X Window system"
url="http://fvwm.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	fontconfig-dev
	freetype-dev
	gettext-dev
	libpng-dev
	librsvg-dev
	libx11-dev
	libxcursor-dev
	libxext-dev
	libxft-dev
	libxinerama-dev
	libxpm-dev
	libxslt
	libxt-dev
	perl
	readline-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/fvwmorg/fvwm/releases/download/$pkgver/fvwm-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--disable-perllib \
		--disable-bidi
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fc9076c3f07f36b0b2c7c4d2bdf7bb1a711000e39316e327173548bc99dc2b8a29b591e3644e1492f87603b576cd4a3f58ecbdd84a4384d294417b3c56c81808  fvwm-2.7.0.tar.gz
"
